// 二叉树的结点
class Node {
  constructor (element, left = null, right = null) {
    this.element = element
    this.left = left
    this.right = right
  }
}

class TrieNode {
  constructor (isWord = false) {
    this.isWord = isWord
    this.next = new Map() // 这里的map是<string, TrieNode>结构
  }
}

export default { Node, TrieNode }
